package com.example.knowledgeget1.KnowtCommon.Service;

import com.example.knowledgeget1.KnowtCommon.Repository.KnowinRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KnowinService {
    @Autowired
    private KnowinRepository knowinRepository;

    // 根据课程ID获取所有知识点ID
    public List<Long> getKnowIdsByCourseId(Long courseId) {
        return knowinRepository.findKnowIdsByCourseId(courseId);
    }
}